package com.societyGames.utility
{
	public class HyperTextEscape
	{
		public static function escape(text:String):String
		{
			var ampPattern:RegExp = /&/g;
			text = text.replace(ampPattern, "&amp;");
			var ltPattern:RegExp = /</g;
			text = text.replace(ltPattern, "&lt;");
			var gtPattern:RegExp = />/g;
			text = text.replace(gtPattern, "&gt;");
			return text;
		}
	}
}